package com.ems.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ems.system.entity.SysMenu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    List<SysMenu> getMenuTree(@Param("roles") List<String> roles);

    List<String> getMenuUrlByRole(@Param("roles") List<String> roles);

    List<String> getPermission(@Param("roles") List<String> roles);
}
